cli.php

#!/usr/bin/env php
<?php

namespace Taeluf\Tester;

// require_once(__DIR__.'/Utility.php');
// require_once(__DIR__.'/ExceptionCatcher.php');
// require_once(__DIR__.'/Assertions.php');
// require_once(__DIR__.'/Databasing.php');
// require_once(__DIR__.'/Tester.php');
// require_once(__DIR__.'/CliClass.php');

require_once(dirname(__DIR__).'/vendor/autoload.php');

$dir = getcwd();
$cli = new \Taeluf\Tester\Cli($dir, array_slice($argv,1));
if (!$cli->loadConfig()){
    echo "Couldn't load config...";
    return;
}
$cli->loadProjectConfig();
$testSet = $cli->runTests();
echo $cli->cliOutput($testSet);
$html = $cli->htmlOutput($testSet);
$cli->writeTestResults($html);